/*
 * Copyright(C) 2019 FUYUN DATA SERVICES CO.,LTD. - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited
 * Proprietary and confidential
 * 该源代码版权归属福韵数据服务有限公司所有
 * 未经授权，任何人不得复制、泄露、转载、使用，否则将视为侵权
 */

// 用户中心列表接口
export interface IuserCenterList {
  id: string;
  createdAt: string;
  updatedAt: string;
  phone: string;
  name: string;
  enabled: boolean;
}
// 用户新增接口
export interface IuserCenterCteate {
  phone: string;
  name: string;
  password: string;
}
// 用户凭证列表接口
export interface IuserCertList {
  id: string;
  createdAt: string;
  updatedAt: string;
  name: string;
  logoUrl: string;
  roles: IrolesList[];
  clientId?: string;
  clientSecret: string;
  scope: string[] | null;
}
// 角色列表接口
export interface IrolesList {
  id: string;
  createdAt: string;
  updatedAt: string;
  clientId: string;
  name: string;
  code: string;
  permissions: any;
}
// 用户凭证详情接口
export interface IcertList {
  client: IuserCertList;
  roles: IrolesList[];
  user: IuserCenterList;
  [propName: string]: any;
}
// 新增凭证接口
export interface ICertSet {
  clientId: string;
  phone: string;
  id?: string;
  roleIds: string[];
  userId: string;
  name: string;
}

// 更新用户

export interface IUserCenterUpdate {
  id: string;
  name: string;
  password?: string;
}
